package net.zjitc.service.impl;

import net.zjitc.mapper.StudentMapper;
import net.zjitc.pojo.Student;
import net.zjitc.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    StudentMapper studentMapper;
    @Override
    public List<Student> findAll() {
        return studentMapper.findAll();
    }

    @Override
    public void del(Student student) {
        studentMapper.del(student);
        return;
    }

    @Override
    public void insert(Student student) {
        studentMapper.insert(student);
        return;
    }

    @Override
    public Student selectByID(Student student) {
        return studentMapper.selectByID(student);
    }

    @Override
    public void update(Student student) {
        studentMapper.update(student);
        return;

    }
}
